using Domain.Entities;
using Domain.Misc;
using Domain.Services;
using System;
using UserInterface.Misc;

namespace UserInterface.Admin
{
    public partial class Statistics : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                TotalNumberOfMessagesLiteral.Text = MessageService.GetTotalNumberOfMessages().ToString();
                TotalNumberOfTopicsLiteral.Text = TopicService.GetTotalNumberOfTopics().ToString();
                TotalNumberOfUsersLiteral.Text = UserService.GetTotalNumberOfUsers().ToString();
            }
        }
    }
}
